import json
import os
from data import constant

def analyze_data(filename):
    # path = os.getcwd()
    # path = "E:/00Testing/test4yunkai_admin"
    path = constant.PATH
    try:
        with open(path+"/data/" + filename, "r", encoding="utf-8") as f:
            dict_data = json.load(f)
            return [value for value in dict_data.values()]
    except FileExistsError:
        print("未读取到文件")


if __name__ == '__main__':
    list=analyze_data("data_1_login.json")
    print(list)